@import "bootstrap-sprockets";
@import "2015/bootstrap-custom";
@import "icon-fonts";

html {
  font-size: 16px;
}

$normalFont: 'Helvetica Neue', 'Helvetica', 'Lantinghei SC Extralight','STHeitiSC-Light', 'Microsoft Yahei', 'Arial', sans-serif;
$boldFont: 'Helvetica Neue', 'Helvetica', 'Lantinghei SC','STHeitiSC', 'Microsoft Yahei', 'Arial', sans-serif;
body {
  font-family: $normalFont;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a,a:hover,a:focus {
  text-decoration: none;
}

// 都用中文字体，保证英文和中文感觉一样
$chinese-font: 'Lantinghei TC Extralight', 'STHeitiSC-Light', 'Microsoft Yahei';
$chinese-font-bold: 'Lantinghei SC', 'STHeitiSC', 'Microsoft Yahei';

$light-blue: #21376e;
$dark-blue: #09162f;
$middle-blue: #122347;
$color-brown: #a28356;
$blue-gradient: linear-gradient($light-blue, $dark-blue);
$blue-gradient-revert: linear-gradient($dark-blue, $light-blue);
$white-gradient: linear-gradient(#fff, #f0f0f0);

@mixin zIndexShadow($index: 1) {
  @if($index == 1) {
    box-shadow: 0 3px 17px 0 rgba(0,0,0,0.2);
  }
}

// 小型的宽度
$min-container: 980px;

.btn.theme-btn {
  border-radius: 3px;
  background: $light-blue;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  padding: 5px 20px;
  letter-spacing: 1px;
  border: none;
  transition: all .3s;
  border: 1px solid rgba(0,0,0,0);
  &:hover {
    background: #fff;
    color: $light-blue;
  }
  &.hover-border:hover {
    border-color: $light-blue;
  }
}

.a-center {
  position: absolute;
  margin: auto;
  left: 0; right: 0; top: 0; bottom: 0;
}

@mixin aCenterTrans {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.a-center-trans {
  @include aCenterTrans;
}

.block {
  display: block;
}

.w100p {
  width: 100%;
}

.template {
  display: none;
}

.dib-middle {
  display: inline-block;
  vertical-align: middle;
}
.dib-top {
  display: inline-block;
  vertical-align: top;
}

// 段落的排版
.p-typeset {
  font-size: 1rem;
  line-height: 2rem;
  font-weight: bold;
  p {
    margin-bottom: 25px;
  }
}

.mt10 {
  margin-top: 10px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: normal;
  font-family: $chinese-font;
  text-align: center;
}

.tac {
  text-align: center !important;
}
.tal {
  text-align: left;
}
.tar {
  text-align: right;
}

.relative {
  position: relative;
}

.share-gotop {
  position: fixed;
  bottom: 10%;
  z-index: 11;
  right: -50px;
  transition: all .3s;
  &.show {
    right: 20px;
  }
  .group-btn {
    background-color: #fefefe;
    width: 36px;
    height: 36px;
    display: block;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 1.2rem;
    position: relative;
    &:first-child {
      border-bottom: none;
    }
    &:before {
      color: #888;
      font-weight: normal;
      @include aCenterTrans;
    }
    &:hover {
      background-color: #efefef;
      &:before {
        color: #222;
      }
    }
  }
}

.loading {
  position: relative;
  &.loading-show:after {
    position: absolute;
    display: block;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: image_url('loading.gif') center center no-repeat;
    background-size: 50% 50%;
  }
  &.loading-show .unload-text {
    opacity: 0;
  }
}

.svg .loading.loading-show:after {
  background-image: image_url('loading.svg');
}

@mixin badge($width) {
  $ratio: 280px/326px;
  @include size($width, $width / $ratio);
  background: image_url('innoawards/2015/badge.png') 0 0 no-repeat;
  background-size: 100% 100%;
}

@mixin mobile {
  @media screen and (max-width: $screen-xs-max) {
    @content;
  }
}

@mixin tablet {
  @media screen and (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
    @content;
  }
}

@import './shared/header';
@import './2015/banner';
@import './2015/about';
@import './2015/awards_list';
@import './2015/rule';
@import './2015/schedule';
@import './2015/vote';
@import './2015/history';
@import './2015/partner';
@import './shared/footer';
@import './shared/alert';

// product page
@import '../products';
